package com.dongdong.api;

import com.dongdong.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdong-sms-service")
public interface SMSApi {

    @GetMapping("/sendSms/getCode")
    public Result getCode(@RequestParam String phone);
}
